<?php
    echo anchor('/', 'Home');
    echo '<img src="'.base_url().'media/site/css/images/arrow-right.png" />';
    if(isset($page))
    {
        if($page['parent_id'] > 0)
        {
            if($parent1['parent_id'] > 0)
            {
                $parent2 = $this->MPage->getNavigationPageByPageId($parent1['parent_id']);
                if($parent2['segment'] == '#'){ $url = base_url().uri_string().'?#';}
                else { $url = 'page/'.$parent2['segment'];}
                echo anchor($url, $parent2['title']);
                echo '<img src="'.base_url().'media/site/css/images/arrow-right.png" />';
            }
            echo anchor('page/'.$parent1['segment'], $parent1['title']);
            echo '<img src="'.base_url().'media/site/css/images/arrow-right.png" />';
            echo anchor('page/'.$page['segment'], $page['title']);
        }
        elseif($page['segment'] != 'index')
        {
            echo anchor('page/'.$page['segment'], $page['title']);
        }
    }
?>